function GetViolationWarn() {

	var myData = [
			['1','上班时间','设备1','添加XX策略','sss@hotmail.com','1502211546'],
			['2','上班时间','设备1','删除XX策略','sss@hotmail.com','1502211546'],
			['3','上班时间','设备1','添加XX策略','sss@hotmail.com','1502211546'],
			['4','上班时间','设备1','添加XX策略','sss@hotmail.com','1502211546'],
			['5','上班时间','设备1','删除XX策略','sss@hotmail.com','1502211546']
	];


	var store = new Ext.data.ArrayStore({
				fields : [{
							name : 'id'
						}, {
							name : 'time'
						}, {
							name : 'device'
						}, {
							name : 'day'
						}, {
							name : 'email'
						}, {
							name : 'message'
						}]
			});
			



	store.loadData(myData);
	var nowpage = new Ext.Toolbar.TextItem('1');
	var countpage = new Ext.Toolbar.TextItem('共1页');
	var now_page = 0;
	var count_page = 0;
	var sm = new Ext.grid.CheckboxSelectionModel();
	var grid = new Ext.grid.GridPanel({
				store : store,
				columns : [sm, {
							id : 'id',
							header : 'id',
							width : 10,
							sortable : true,
							dataIndex : 'id',
							hidden : true
						}, {
							header : '时间',
							width : 150,
							sortable : true,
							dataIndex : 'time'
						}, {
							header : '设备',
							width : 100,
							sortable : true,
							dataIndex : 'device'
						}, {
							header : '到期前预警时间',
							width : 100,
							sortable : true,
							dataIndex : 'day'
						}, {
							header : '邮箱',
							width : 100,
							sortable : true,
							dataIndex : 'email'
						}, {
							header : '短信号码',
							width : 100,
							sortable : true,
							dataIndex : 'message'
						}],
				sm : sm,
				tbar : [{
							text : '设置',
							tooltip : '设置',
							iconCls : 'set',
							handler : function() {
								GetLinkDevice();
							}
						}],
				
				stripeRows : true,
				autoExpandColumn : 'id',
				stateful : true,
				stateId : 'flowwarngrid'
			});
	grid.getSelectionModel().on('selectionchange', function(sm) {
				grid.removeBtn.setDisabled(sm.getCount() < 1);
			});


	
	
	return grid;
}	
